<template>
<!--推荐职位-->
  <div class="container mt15">
    <el-button type="primary" icon="el-icon-document-add" @click="importPosition()">导入职位</el-button>
    <div class="list">
        
        <el-card>
            <div class="item">
                <div class="upper">
                    <div class="info">
                        <div class="title">web前端
                            <span class="f14 fn text-999 ml10">河南省投资集团有限公司</span>
                        </div>
                        <div class="limit">
                            <span>本科及以上</span>
                            <span>40岁以下</span>
                            <span> 性别不限 </span> 
                            <span>计算机相关专业</span>
                        </div>
                    </div>

                    <div class="rlght">
                        <el-button type="text">置顶</el-button>
                        <div class="f14 text-666">
                            <span>2020-3-26发布</span>
                        </div>
                    </div>
                </div>
            </div>
        </el-card>
    </div>
    <import-position ref="importPosition"></import-position>
</div>
</template>

<script>
import importPosition from './components/Import-position'
export default {
  components: {importPosition},
  props: {},
  data() {
    return {
    };
  },
// 方法
  methods: {
    // 导入
      importPosition(){
        this.$refs.importPosition.show()
      }
  },
// 生命周期 - 创建完成（可以访问当前this实例）
  created() {},
// 生命周期 - 挂载完成（可以访问DOM元素）
  mounted() {},
// 销毁
  destroyed() {}
};
</script>
<style lang="scss" scoped>
  .list{ margin-top: 20px;
            .item{background: #FFFFFF;
                .upper{display: flex; align-items: center; justify-content: space-between;
                    .title{font-size:16px;font-weight:bold;line-height:21px;color:#333333;}
                    .limit{
                        font-size:14px;font-weight:400;line-height:19px;color:#919191; margin-top: 15px;
                        span{
                            margin-right: 20px;border-right: 1px solid #E8E8E8;padding-right: 20px;
                        }
                        span:last-child{border: none;}
                    }
                    .rlght{
                        text-align: center;
                    }
                }
            }
        }
</style>